package org.juggers.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Juggers Event
 * 
 * @author michel@breizhjug.org
 */
@SuppressWarnings("serial")
public class JugEvent
    implements Serializable
{
    public JugEvent( String id )
    {
        super();
        this.id = id;
    }

    private String id;

    private String title;

    private String summary;

    private String location;

    private Date dateTime;

    private List<String> speakers;

    private int participants;

    public String getId()
    {
        return id;
    }

    public void setId( String id )
    {
        this.id = id;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle( String title )
    {
        this.title = title;
    }

    public String getSummary()
    {
        return summary;
    }

    public void setSummary( String summary )
    {
        this.summary = summary;
    }

    public String getLocation()
    {
        return location;
    }

    public void setLocation( String location )
    {
        this.location = location;
    }

    public Date getDateTime()
    {
        return dateTime;
    }

    public void setDateTime( Date dateTime )
    {
        this.dateTime = dateTime;
    }

    public int getParticipants()
    {
        return participants;
    }

    public void setParticipants( int participants )
    {
        this.participants = participants;
    }

    public void addSpeaker( String speaker )
    {
        getSpeakers().add( speaker );
    }

    public List<String> getSpeakers()
    {
        if ( speakers == null )
        {
            speakers = new ArrayList<String>();
        }
        return speakers;
    }

    public void setSpeakers( List<String> speakers )
    {
        this.speakers = speakers;
    }

}
